How An Autonomous Mobile Robot Detects And Avoids Obstacles